<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<div class="alert alert-success">
		<a href="<?php echo U('Form/index')?>">类型列表</a>&nbsp; > 
		<a href="<?php echo U('Fattr/index',array('fid'=>$fid))?>"><?php echo $formData['fname']?></a>&nbsp; >
		<a href="<?php echo U('Fattr/add',array('fid'=>$fid))?>">编辑属性</a>
		</div>
		<form action="" method="post">
			<div class="form-group">
				<label for="fattr_name">属性名称</label>&nbsp;&nbsp;
				<input type="text" name="fattr_name" value="<?php echo $oldData['fattr_name']?>" />
			</div>
			<div class="form-group">
				<!--属性类型 (属性 或者 规格)-->
				<label for="fattr_type">属性类别</label>&nbsp;&nbsp;
				<label class="radio-inline">
				  <input type="radio" name="fattr_type" value="0" <?php if($oldData['fattr_type']==0){?>
                checked="checked"
               <?php }?>> 规格
				</label>
				<label class="radio-inline">
				  <input type="radio" name="fattr_type" value="1" <?php if($oldData['fattr_type']==1){?>
                checked="checked"
               <?php }?>> 属性
				</label>
			</div>
			<div class="form-group">
				<label for="fattr_value">属性值(多个值用 竖线 | 分隔)</label>
				<textarea name="fattr_value" rows="5" cols=""  class="form-control" placeholder="请输入属性按照|分开"><?php echo $oldData['fattr_value']?></textarea>
			</div>
			<input type="hidden" name="fa_id" value="<?php echo $_GET['fa_id']?>" />
			<input type="hidden" name="fid" value="<?php echo $fid?>" />
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
